﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MTS05 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;

    [Description("day-time")]
    public Tag173 DayTime_173
    {
      get
      {
        return new Tag173((SwiftElement) this, 0, (SwiftDefinitionElement) MTS05.U0002);
      }
    }

    [Description("day-time")]
    public Tag173 Tag173_DayTime
    {
      get
      {
        return this.DayTime_173;
      }
    }

    public MTS05()
      : base(true)
    {
    }

    public MTS05(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MTS05.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MTS05.MessageDefinition = new SwiftMessageDefinition("MTS05", "Quit Command");
      MTS05.U0002 = new SwiftTagDefinition("DayTime_173", "day-time");
      MTS05.U0002.TagName = "{173:";
      MTS05.U0002.Mandatory = false;
      MTS05.U0003 = new SwiftTagSubItemDefinition("DayTime", "day-time");
      MTS05.U0002.Elements.Add((SwiftDefinitionElement) MTS05.U0003);
      MTS05.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS05.U0002);
    }
  }
}
